Open Bug 1968259 Opened 9 days ago Updated 8 days ago

Fix a clippy warning in toolkit/components/glean/api/src/ffi/object.rs

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(Not tracked)

People

(Reporter: Sylvestre, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=rust])

Filling as a good first bug to learn workflows.

toolkit/components/glean/api/src/ffi/object.rs
  72:25  warning  unneeded `return` statement  clippy::needless_return (clippy)

Link to the code:
https://searchfox.org/mozilla-central/source/toolkit/components/glean/api/src/ffi/object.rs#72

to run clippy:

./mach lint -W -l clippy toolkit/components/glean/api/

As the change is trivial, it is just to learn how to contribute to Firefox.

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Summary: Fix a clippy warning in xpcom/rust/xpcom/src/refptr.rs → Fix a clippy warning in toolkit/components/glean/api/src/ffi/object.rs
Blocks: clippy
No longer depends on: clippy
You need to log in before you can comment on or make changes to this bug.